package dto

import (
	"vrcm/src/vrcm/common/dto"
	common "vrcm/src/vrcm/common/models"
)

type WatermarkTemplateGetPageReq struct {
	dto.Pagination `search:"-"`
	TenantId       string `json:"tenant_id" search:"type:exact;column:tenant_id;table:watermark_template"`
	WatermarkName  string `json:"watermark_name"  search:"type:contains;column:watermark_name;table:watermark_template"`
}

func (m *WatermarkTemplateGetPageReq) GetNeedSearch() interface{} {
	return *m
}

type WatermarkTemplateInsertReq struct {
	Id            int    `json:"id" comment:""` //
	TenantId      string `json:"tenant_id"`
	WatermarkName string `json:"watermark_name" comment:"租户id" validate:"required"`
	ImgUrl        string `json:"img_url" comment:"图片名" validate:"required"`
	XRate         int    `json:"x_rate" comment:"x轴偏移量"`
	YRate         int    `json:"y_rate" comment:"y轴偏移量"`
	PreViewWidth  int    `json:"preview_width" comment:"预览宽" `
	PreViewHigh   int    `json:"preview_high" comment:"预览高"`
	common.ControlBy
}

type WatermarkTemplateUpdateReq struct {
	Id            int    `json:"id" comment:""` //
	TenantId      string `json:"tenant_id"`
	WatermarkName string `json:"watermark_name" comment:"租户id" validate:"required"`
	ImgUrl        string `json:"img_url" comment:"图片名" validate:"required"`
	XRate         int    `json:"x_rate" comment:"x轴偏移量"`
	YRate         int    `json:"y_rate" comment:"y轴偏移量"`
	PreViewWidth  int    `json:"preview_width" comment:"预览宽" `
	PreViewHigh   int    `json:"preview_high" comment:"预览高"`
	common.ControlBy
}
type WatermarkTemplateGetReq struct {
	Id int `uri:"id" comment:""` //
}
type WatermarkTemplateDeleteReq struct {
	Id int `json:"id" comment:""` //
}
